package controller;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;

public class LoginForm extends ActionForm {

	private static final long serialVersionUID = 1L;

	public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {

		ActionErrors errors = new ActionErrors();
		@SuppressWarnings("unused")
		ServletContext sc = request.getServletContext();
		
		errors.add("", new ActionMessage("The form is invalid."));
		
		return errors;
	}

}
